package com.ruibang.glass.quality.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.quality.domain.req.DiscardDefectReq;
import com.ruibang.glass.quality.domain.req.EverydayDiscardDefectReq;
import com.ruibang.glass.quality.entity.EverydayDiscardDefect;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface EverydayDiscardDefectMapper extends CommonMapper<EverydayDiscardDefect> {

    List<EverydayDiscardDefect> queryEverydayDiscardDefect(EverydayDiscardDefectReq everydayDiscardDefectReq);

    void deleteByDate(@Param("discardReq") DiscardDefectReq discardDefectReq);

    List<EverydayDiscardDefect> queryPageEveryHourColdDirect(IPage<EverydayDiscardDefect> page,@Param("everydayDiscardDefectReq") EverydayDiscardDefectReq everydayDiscardDefectReq);
}
